machine_specific_memory_setup() makes the following call to setup e820:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Fri, 14 Oct 2005 21:15:21 +0000 (22:15 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Fri, 14 Oct 2005 21:15:21 +0000 (22:15 +0100)
commit37df8941646e7f5b9399d6ff6a21803aa281007b
tree22f77d9aedcc0dee754071bd04be523f3532c422
parent192fc23b5a39487b516e6488d2e5d3f70ede736a
machine_specific_memory_setup() makes the following call to setup e820:

    add_memory_region(0, PFN_PHYS(max_pfn), E820_RAM);

Since max_pfn is (rightly) an unsigned long, we overflow for the current
definition of PFN_PHYS. Attached is my preferred solution as it will
hopefully avoid similar situations that may come up in the future.

Signed-off-by: srparish@us.ibm.com
linux-2.6-xen-sparse/include/asm-xen/asm-i386/setup.h